#include <stdio.h>
#include <string.h>
int main()
{
    int i,j,k;
    char a[6][20] = {0};
    char b[6][20] = {0};
    printf("请输入六组字符串:");
    
    for ( i = 0; i < 6; i++)
    {
        scanf("%s\n",a[i]);
    }
    
    for ( i = 0; i < 6; i++)
    {
        for ( j = 0,k = 0; j < strlen(a[i]); j++)
        {
            if (((*a[i]+j) >= 65) && ((*a[i]+j) <= 90) || ((*a[i]+j) >= 97) && ((*a[i]+j) <= 122))
            {
                b[i][k] = a[i][j];
                k++;
            }
            
        }
        
    }
    
    printf("修改后的值为:");
    for ( i = 0; i < 6; i++)
    {
        printf("%s\n",b[i]);
    }
    


    return 0;
}